{% if results %}
{% load listutil i18n ordering %}
<table cellspacing="0">
<thead>
<tr>
{% for header in result_headers %}<th{{ header.class_attrib }}>
{% if header.sortable %}<a href="{{ header.url }}">{% endif %}
{{ header.text|capfirst }}
{% if header.sortable %}</a>{% endif %}</th>
{% if cl.model.orderable and cl|untouched %}<th>{% trans "Move" %}</th>{% endif %}
{% endfor %}
</tr>
</thead>
<tbody>
{% for result in results %}
<tr class="{% cycle 'row1' 'row2' %}">
	{% for bit in result %}{{ bit }}{% endfor %}
	{% if cl.model.orderable and cl|untouched %}
		{% with cl.result_list|item:forloop.counter0 as item %}
			<td><a href="{{ item.ordering_url }}?direction=up">{% trans "up" %}</a> / <a href="{{ item.ordering_url }}?direction=down">{% trans "down" %}</a></td>
		{% endwith %}
	{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
